package com.myh.gulimall.product.dao;

import com.myh.gulimall.product.entity.AttrAttrgroupRelationEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.myh.gulimall.product.vo.AttrGroupRelationVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 属性&属性分组关联
 * 
 * @author myh
 * @email 2722407149@qq.com
 * @date 2024-01-01 11:42:39
 */
@Mapper
public interface AttrAttrgroupRelationDao extends BaseMapper<AttrAttrgroupRelationEntity> {

    void updateAttrGroupIdByAttrId(@Param("attrId") Long attrId, @Param("attrGroupId") Long attrGroupId);

    List<Long> getAttrIdsByAttrgroupId(@Param("attrgroupId") Long attrgroupId);

    void deleteBatchRelation(@Param("vos") List<AttrGroupRelationVo> vos);
}
